package annotation;

import java.util.Arrays;

/**
 * 测试　@Test
 */
public class Simple2 {
    // 算术异常
    @ExceptionTest(ArithmeticException.class) public static void  m1() {
        int i = 0;
        i = i / 0;

        // test should pass
    }

    @ExceptionTest(ArithmeticException.class) public static void  m2() {
        int[] a = new int[0];
        int i = a[1];

        // should fail (wrong exception)
    }

    @ExceptionTest(ArithmeticException.class) public static void  m3() {
        // should fail (no exception)
    }


    public static void main(String[] args) { String l = "zz_aa_bb_cc";String[] split = l.split("_", 3);System.out.println(Arrays.toString(split)); }}